package eightDataType.mStr;

public class StringSub1 {
	public static void main(String[] args) {
		String temp = "1-4-899";

		String substring = temp.substring(1);
		System.out.println("141111111111111111");
		System.err.println(substring);
//		System.out.println(temp.lastIndexOf("-")+"");
//		String substring = temp.substring(temp.lastIndexOf("-"), temp.length());
//		substring="bc"+substring;
//		System.out.println("lastIndexOf====" + substring);


		String str = "123_abc";
		int abc = str.lastIndexOf("_abc");
		System.out.println("lastindexof "+ abc);
		System.out.println(str.substring(0,abc));
	}
}
